{% extends "dynamic/base.html" %}

{% load i18n adminmedia %}

{% block stylesheet %}{% admin_media_prefix %}css/dashboard.css{% endblock %}
{% block bodyclass %}change-list{% endblock %}
{% block coltype %}flex{% endblock %}

{% block extrahead %}{{ block.super }}

<style>
    #content-main {
        width: 100%;
    }

    .lines .number {
        width: 1;
        text-align: right;
    }

    textarea.content {
        display: block;
        width: 99%;
        height: {{ app_settings.DYNAMIC_TEXTAREA_HEIGHT }};
        font-family: courier new, courier, verdana, tahoma;
        font-size: 12pt;
    }
</style>
{% endblock extrahead %}

{% block content %}
<div id="content-main">
    <div class="module">

        <form method="post">

    {% include "dynamic/file_manager_edit_buttons.html" %}

    <table width="100%">
        <caption>{% trans "PROJECT ROOT" %}{{ current_path }} <a href="../?f={{ parent_path }}">({% trans "parent" %})</a></caption>

        <tr><td><textarea name="content" class="content">{{ current.content_as_text }}</textarea></td></tr>
    </table>

    {% include "dynamic/file_manager_edit_buttons.html" %}

        </form>

    </div>
</div>
{% endblock content %}

